import axios from "axios";

const request = axios.create({
  baseURL: "",
  timeout: 5000,
});

request.interceptors.request.use((config) => {


  config.headers.Authorization = localStorage.getItem("token") || " "

  return config
}, (err) => {
  Promise.reject(err)
})

request.interceptors.response.use((response) => { return response }, (err) => { Promise.reject(err) })

export default request
